import React from 'react'
import { Link, BrowserRouter as Router} from 'react-router-dom'
import RootRouter from './RootRouter'
export default function App() {
  return (
    <div>
      <Router>
        <nav>
          <Link to='/'>首页</Link>
          <Link to='/news'>新闻</Link>
        </nav>
        <div>
          {/* 匹配顶级页面 */}
          <RootRouter />
        </div>
      </Router>
    </div>
  )
}
